package per.brant.template.service

import net.liftweb.common.{Full, Box}
import scala.util.Random

/**
 * Created by brantyan on 14-1-16.
 */
object PonyService {
  private val ponies  =Set(
      Pony("Twilight sparkle","/images/ajax-loader.gif"),
      Pony("Rainbow Dash","/images/ajax-loader.gif"),
      Pony("Fluttersky","/images/ajax-loader.gif")
  )

  def getRandomPony :Box[Pony] = Full(Random.shuffle(ponies).head)
}
case class Pony(name:String,imageUrl:String)
